<html>
<script>
    var total = 1
    var n = 10
    while(n>=1){
        console.log(n)
        total*=n
        n--
    }
    console.log(total)
</script>
</html>